package com.zhiyou.brank.controller;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhiyou.brank.service.FlyScoreService;
import com.zhiyou.brank.service.FlyStudentService;

import com.zhiyou.utils.JsonResult;

@RestController
@RequestMapping("student/")
public class FlyStudentController {
@Autowired
FlyStudentService flyStudentService;
@Autowired
FlyScoreService flyScoreService;
@GetMapping(value="selectStudentOne/{class_id}")
public JsonResult selectStudentOne(@PathVariable("class_id")Integer class_id,HttpServletRequest req,HttpServletResponse rep){
	return new JsonResult(flyStudentService.selectStudentOne(class_id),"查询成功");		
}
@GetMapping(value="selectStudentTwo/{student_id}")
public JsonResult selectStudentTwo(@PathVariable("student_id")Integer student_id,HttpServletRequest req,HttpServletResponse rep){
	return new JsonResult(flyStudentService.selectStudentTwo(student_id),"查询成功");		
}
@GetMapping(value="selectStudentThree/{student_id}")
public JsonResult selectStudentThree(@PathVariable("student_id")Integer student_id,HttpServletRequest req,HttpServletResponse rep){
	return new JsonResult(flyScoreService.selectScoreFour(student_id),"查询成功");		
}

}

